package cn.cs.fallback;

import cn.cs.client.RepairComplaintClient;
import cn.cs.pojo.RepairComplaint;
import cn.cs.pojo.RepairComplaintNode;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;


/**
 * 类似于try catch中的catch块中的内容，即发生错误时，处理的过程
 * 是用来发生熔断时的顶包组件,因此也必须实现接口
 * 异常时做一些处理，给用户一个交代
 * */
@Component
public class RepairComplaintFallBack implements RepairComplaintClient {

    @Override
    public RepairComplaint getRepairComplaintById(String id) throws Exception {
        return null;
    }

    @Override
    public List<RepairComplaint> getRepairComplaintListByMap(Map<String, Object> param) throws Exception {
        return null;
    }

    @Override
    public Integer getRepairComplaintCountByMap(Map<String, Object> param) throws Exception {
        return null;
    }

    @Override
    public Integer addRepairComplaint(RepairComplaint repairComplaint) throws Exception {
        return null;
    }

    @Override
    public Integer modifyRepairComplaint(RepairComplaint repairComplaint) throws Exception {
        return null;
    }

    @Override
    public Integer deleteRepairComplaintById(String id) throws Exception {
        return null;
    }

    @Override
    public Map<String, Object> getPersonByCode(String code) throws Exception {
        return null;
    }

    @Override
    public Integer addRepairComplaintNode(RepairComplaintNode repairComplaint) throws Exception {
        return null;
    }

    @Override
    public Integer getRepairComplaintNodeCountByMap(Map<String, Object> param) throws Exception {
        return null;
    }

    @Override
    public List<RepairComplaintNode> getRepairComplaintNodeListByMap(Map<String, Object> param) throws Exception {
        return null;
    }
}
